package com.sealer.pattern.behavioral.interpreter;

import java.util.HashMap;

/**
 * Created by sealer on 17/04/10.
 */
public class Context {
    private HashMap<String, Expression> map;

    public Context() {
        this.map = new HashMap<>();
    }

    public Expression getExp(String key) {
        return map.get(key);
    }

    public void setExp(String key, Expression value) {
        map.put(key, value);
    }
}
